package com.tedu.basic.Test;
//此类用于---判断闰年
import java.util.Scanner;

public class Test_if_YearJug {
    public static void main(String[] args) {
        Scanner s=new Scanner(System.in);
        System.out.println("输入年份： ");
        int year = s.nextInt();

        if((year % 4 == 0 && year % 100!= 0)||year % 400 == 0){
            System.out.println("闰年");
        }
        else
        {
            System.out.println("平年");
        }
    }
}
